package com.aaa.web.dao.baterymangerdao;

import com.aaa.entity.BatteryPosition;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *
 *
 * @author Kevin Jia
 * @CLASS:BatteryAdderss
 * @Date:2018/12/19 16:25
 */
@Mapper
@Component
public interface BatteryMangerDao {
    /**
     * @Description: 获取定位标记
     * @Param: lng,lat
     * @return: List
     * @Author: Kevin Jia
     * @Date: 2018/12/20
     * @Time: 15:57
     */
    List<BatteryPosition> getPosition(String lng, String lat);

    /**
     * @Description: 获取当前学校所有充电点信息
     * @Param: BatteryPosition
     * @return: BatteryPosition
     * @Author: Kevin Jia
     * @Date: 2018/12/20
     * @Time: 22:52
     */
    List<BatteryPosition> getBatteryInfo(BatteryPosition batteryPosition);

    /**
     * @Description: 获取查询数量
     * @Param:
     * @return:
     * @Author: Kevin Jia
     * @Date: 2018/12/21
     * @Time: 8:50
     */
    Object getBateryAddCount();

    /**
     * @Description: 当用户输入条件是学校数字代码时
     * @Param: String
     * @return: List
     * @Author: Kevin Jia
     * @Date: 2018/12/21
     * @Time: 19:17
     */
    List<BatteryPosition> getSchoolsNm(String school);

    /**
     * @Description: 当用户输入条件是学校汉字时
     * @Param: String
     * @return: List
     * @Author: Kevin Jia
     * @Date: 2018/12/21
     * @Time: 19:18
     */
    List<BatteryPosition> getSchoolsCH(String school);

    /**
     * @Description: 分页
     * @Param: Obj
     * @return:
     * @Author: Kevin Jia
     * @Date: 2018/12/21
     * @Time: 19:19
     */
    Object getSchoolsCHCount();
    /**
     * @Description: 分页
     * @Param: Obj
     * @return:
     * @Author: Kevin Jia
     * @Date: 2018/12/21
     * @Time: 19:19
     */
    Object getSchoolsNmCount();

    /**
     * @Description: 插入充电站信息表
     * @Param: BatteryPosition
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/21
     * @Time: 21:41
     */
    void InsertBatteryPosition(BatteryPosition batteryPosition);

    /**
     * @Description: 修改
     * @Param: BatteryPosition
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 10:23
     */
    void updateBatteryInfo(BatteryPosition batteryPosition);

    /**
     * @Description: 假删除
     * @Param: String
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 10:23
     */
    void delBatteryInfo(String id);
}
